/*------------------------------------------------------------------------------
 * Fortress DS
 * 
 * Copyright (c) 2008 David Panseri
 * distributed under the terms of the GNU General Public License
 -------------------------------------------------------------------------------
 *
 * Sprite.cpp
 *
 -----------------------------------------------------------------------------*/

#include <nds.h>
#include <stdio.h>
#include "Sprite.h"

//Constructor
Sprite::Sprite(void)
{
    pSprite = new SpriteEntry;
}

Sprite::Sprite(SpriteEntry* pSprite)
{
    this->pSprite = pSprite;
}
//Destructor
Sprite::~Sprite(void)
{
    
}

//set methods
void Sprite::setAttributes(u16 attribute1, u16 attribute2, u16 attribute3)
{
    pSprite->attribute[0] = attribute1;
    pSprite->attribute[1] = attribute2; // size 64x64, x 10
    pSprite->attribute[2] = attribute3;
}

void Sprite::setPosition(u16 x, u16 y)
{
    pSprite->posX = x;
    pSprite->posY = y;
}